package com.emmmya.ocs.common.base;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.Setter;

/**
 * @description: 这是个mybatis-plus的分页插件
 * @author: 咕噜肉IT小店-黑医
 * @createDate: 2021-01-29
 * @version: 1.0
 */
public abstract class BaseVo<T>{
    @Getter(AccessLevel.NONE)
    @Setter(AccessLevel.NONE)
    protected QueryWrapper<T> wrapper;

    protected QueryWrapper<T> getWrapper(){
        return wrapper;
    }

    public abstract QueryWrapper<T> createWrapper();

    public abstract IPage<T> createPage();

}
